package com.xlf.service.base.controller.client;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xlf.common.core.annotation.Anonymous;
import com.xlf.common.core.constant.Constants;
import com.xlf.common.core.pojo.mode.AjaxResult;
import com.xlf.common.core.pojo.mode.BaseController;
import com.xlf.pojo.base.Language;
import com.xlf.service.base.pojo.dto.JudgeListReqDTO;
import com.xlf.service.base.service.LanguageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author xlf 2734029211@qq.com
 * @Date 2023/11/18 22:54
 * @Description: TODO 语言模块
 * @Version 1.0
 */
@RestController
@RequestMapping("/base/language")
public class LanguageController extends BaseController {

    @Autowired
    LanguageService languageService;


    @Anonymous
    @GetMapping("/list")
    public AjaxResult getLanguageList() {
        return success(languageService.list(new LambdaQueryWrapper<Language>()
                .eq(Language::getStatus,Constants.NORMAL)));
    }

}
